package bpm.util;

import java.util.HashMap;
import java.util.Map;

import bpm.domain.user.OrgScopeRelation;
/**
 * 
 * @author ZhaoWangLong Oct 17, 2011
 *
 */
public final class OrgScopeRelationUtil {
	private static  Map<String, OrgScopeRelation> orgScope=new HashMap<String, OrgScopeRelation>();
	static{
		init();
	}	
	private static void init(){
		orgScope.put("CBRC_SUPPER_DEPT", new OrgScopeRelation("CBRC_SUPPER_DEPT","CBRC","SUPPER_DEPT",1) );
		orgScope.put("CBRC_DEPARTMENT", new OrgScopeRelation("CBRC_DEPARTMENT","CBRC","DEPARTMENT",2) );
		orgScope.put("CBRC_DIVISION", new OrgScopeRelation("CBRC_DIVISION","CBRC","DIVISION",3));
		orgScope.put("CBRC2_DEPARTMENT", new OrgScopeRelation("CBRC2_DEPARTMENT","CBRC2","DEPARTMENT",1));
		orgScope.put("CBRC2_DIVISION", new OrgScopeRelation("CBRC2_DIVISION","CBRC2","DIVISION",2));
		orgScope.put("CBRC2_CELL", new OrgScopeRelation("CBRC2_CELL","CBRC2","CELL",3));
		orgScope.put("CBRC3_DIVISION", new OrgScopeRelation("CBRC3_DIVISION","CBRC3","DIVISION",2));
		orgScope.put("CBRC3_CELL", new OrgScopeRelation("CBRC3_CELL","CBRC3","CELL",3));
	}
	public static OrgScopeRelation getOrgScope(String key){
		return orgScope.get(key);
	}
}
